<template>
  <div class="today-original">
    <a v-for="(wine, index) of wineList" :key="index" :href="url+'/channel_brand.htm?id='+wine.id" class="quality-router">
      <img :src="url+wine.img">
      <p class="goods-title wine-name">{{wine.name}}</p>
      <p class="goods-time wine-name">{{wine.cnName}}</p>
      <p class="remark">{{wine.remark}}</p>
    </a>
  </div>
</template>

<script>
  export default{
    name: 'qualityWine',
    props: ['wineList'],
    data () {
      return {
        url: 'http://www.finewest.cn'
      }
    }
  }
</script>

<style scope lang="scss">
  .today-original{
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 4px;
  .quality-router{
    display: block;
    float: left;
    margin-top: 10px;
    width: calc(50% - 1px);
    border-bottom: 1px solid #dedede;
  &:nth-child(odd){
     margin-right: 2px;
   }
  img{
    width: 100%;
    display: inherit;
    height: 120px;
    object-fit: contain;
  }
  p.wine-name{
    font-size: 12px;
    line-height: 12px;
    color: #000000;
    margin: 10px 12px 8px;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
  }
  p.remark{
    font-size: 10px;
    color: #555555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 12px;
    line-height: 12px;
    height: 24px;
  }
  }
  }
</style>
